package SwingContainer;
import javax.swing.*;
import java.awt.*;

public class Window02CTest {
    public static void main(String[] args) {
        //获取系统分辨率
        Toolkit toolkit=Toolkit.getDefaultToolkit();
        Dimension screenSize=toolkit.getScreenSize();
        int width= screenSize.width;
        int height= screenSize.height;
        JFrame myProject=new Window02Main("MySwingProject");
        myProject.setBounds((width/2)-250,(height/2)-150,500,300);
        myProject.setVisible(true);
        myProject.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }


}
